/* Trails, by Oren Peli, Copyright (c) 1988 BazboSoft! */
#include <graphics/gels.h>
#include <hardware/cia.h>
void *OpenLibrary();
struct IntuitionBase *IntuitionBase = NULL;
struct GfxBase *GfxBase = NULL;
struct Screen *OpenWorkBench();
struct Screen *scr;
PLANEPTR pln[4];
PLANEPTR AllocRaster();
struct BitMap *bm;
WORD olddepthglob , newdepthglob;
WORD pointer_data0[16 * 2 * 3] = { 0 };
WORD *pointer_data1;
WORD *pointer_data2;
WORD is[16 * 2] = { 0 };
WORD bl[4] = { 0 };
struct RastPort trp;
struct BitMap tbm;
struct VSprite vs;
struct VSprite dummyhead , dummytail;
struct Bob bob;
struct GelsInfo gi;
WORD bob_added = NULL;
main()
{
REGISTER WORD olddepth , t , i;
REGISTER struct ViewPort *vp;
REGISTER struct Preferences prefs;
pointer_data1 = pointer_data0 + 16 * 2;
pointer_data2 = pointer_data1 + 16 * 2;
pln[0] = pln[1] = pln[2] = pln[3] = NULL;
puts("Trails, by Oren Peli, Copyright (c) 1988 BazboSoft!\nMove the mouse. The left mouse button will clear the screen.\n\nPress CTRL-C to abort (or use 'Break').");
if (NOT (IntuitionBase = OpenLibrary("intuition.library" , 33L) ) )
bye();
if (NOT (GfxBase = OpenLibrary("graphics.library" , 33L) ) )